package com.xzy.sms.web.system.service.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.google.common.collect.Lists;
import com.xzy.sms.web.system.PermissionConstants;
import com.xzy.sms.web.system.bean.PermItem;
import com.xzy.sms.web.system.service.interfaces.IBussPerm;

/**
 * 配置项业务实现类
 * 
 * @author macong
 * @since 1.0
 * @version 2015-01-13 macong
 */
@Component
public class BussPerm implements IBussPerm {
    
    /**
     * 获取所有权限配置
     * 
     * @return lstPermItem
     * @see com.comtop.pssz.service.interfaces.IBussPerm#getAllPerm()
     */
    @Override
    public List<PermItem> getAllPerm() {
        List<PermItem> perms = Lists.newArrayList();
        
        PermItem permItem = new PermItem(PermissionConstants.ADMIN, "系统配置", " - 基本配置<br/> - 赠与事由分类<br/> - 权限管理<br/>");
        perms.add(permItem);
        
        permItem = new PermItem(PermissionConstants.ADMIN, "发送通道管理", " - 发送通道<br/>");
        perms.add(permItem);
        
        permItem = new PermItem(PermissionConstants.ADMIN, "用户管理", " - 用户管理<br/>");
        perms.add(permItem);
        
        permItem = new PermItem(PermissionConstants.USER, "应用管理", " - 应用管理<br/>");
        perms.add(permItem);
        
        permItem = new PermItem(PermissionConstants.USER, "模板管理", " - 创建模板<br/> - 修改模板<br/>");
        perms.add(permItem);
        
        permItem = new PermItem(PermissionConstants.USER, "发送测试", " - 发送测试<br/>");
        perms.add(permItem);
        
        permItem = new PermItem(PermissionConstants.USER, "发送记录", " - 发送记录<br/>");
        perms.add(permItem);
        
        // 暂未实现
        // permItem = new PermItem(PermissionConstants.PERMSTR_ADMIN, "管理员权限集合", " - 包含所有权限");
        // perms.add(permItem);
        
        return perms;
    }
}
